package com.ambition.mallchat.common.websocket.service;

import io.netty.channel.Channel;

/**
 * @program: mallchat-learnning
 * @interfaceName WebsocketSercide
 * @description:
 * @author: XXD
 * @create: 2023-10-26 23:05
 * @Version 1.0
 **/
public interface WebsocketService {
    /**
     *
     * @param channel
     */
    void connect(Channel channel);

    /**
     *
     * @param channel
     */

    void handeleLoginReq(Channel channel);

    /**
     * 用户下线操作
     * @param channel
     */
    void remove(Channel channel);

    Channel getChannelByCode(Integer code);

    void scanLoginSuccess(Integer code, Long id);

    void waitAuthorize(Integer code);
}